package demo;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;

/*
 * 	问题1：从csv读取数据。把数据按照小时，30分钟，15分钟输出并打印。
 *  示例：
 * 	小时：
	1;2;3;4;5;6;7;8
	30分钟：
	0~30:23,30-60:34; 0~30:12,30-60:15; 0~30:56,30-60:65; 0~30:31,30-60:42; 0~30:34,30-60:15; 0~30:32,30-60:55; 0~30:4,30-60:8; 0~30:9,30-60:8
	15分钟：
	0~15:21,15~30:13,30~45:34,45~60:78; 0~15:11,15~23:13,30~45:14,45~60:18; 0~15:2,15~30:3,30~45:4,45~60:34; 0~15:1,15~30:21,30~45:14,45~60:18; 0~15:6,15~30:5,30~45:2,45~60:11; 0~15:31,15~30:23,30~45:3,45~60:34; 0~15:40,15~30:83,30~45:64,45~60:90; 0~15:51,15~30:63,30~45:94,45~60:7
 */

public class ReadDemo {
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new FileReader("data.txt"));
		String line;  
		while ((line = br.readLine()) != null) {  
			System.out.println(line);
		} 
		br.close();
	}
}
